<!-- register_done.html -->
<!DOCTYPE html>
<html>
<head>
    <title>注册成功</title>
</head>
<body>
    <div class="success-container">
        <div class="success-card">
            <div class="success-icon animate-check">
                <svg viewBox="0 0 24 24">
                    <path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/>
                </svg>
            </div>
            <h1 class="success-title">注册成功！</h1>
            <div class="success-content">
                <p class="welcome-text">欢迎加入我们，<span class="username">{{ new_user.username }}</span></p>
                <p class="tip-text">您已成功创建账户，现在可以开始探索更多服务</p>

                <a href="{% url 'login' %}" class="ant-btn ant-btn-primary ant-btn-lg">
                    立即登录
                    <div class="hover-effect"></div>
                </a>

                <div class="additional-actions">
                    <p>前往首页了解更多 <a href="/" class="ant-link">探索服务 →</a></p>
                </div>
            </div>
        </div>
    </div>

<style>
.success-container {
    background: #f5f7fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.success-card {
    background: white;
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    max-width: 560px;
    width: 100%;
    text-align: center;
    transition: transform 0.3s;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #52c41a;
    border-radius: 50%;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.animate-check {
    animation: checkScale 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes checkScale {
    0% { transform: scale(0); }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-title {
    color: #1f2d3d;
    font-size: 28px;
    margin-bottom: 16px;
    font-weight: 600;
}

.welcome-text {
    color: #5e6c84;
    font-size: 18px;
    margin-bottom: 8px;
}

.username {
    color: #ff6a00;
    font-weight: 500;
}

.tip-text {
    color: #7a8aa0;
    margin-bottom: 32px;
}

.ant-btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    min-width: 200px;
}

.additional-actions {
    margin-top: 32px;
    color: #7a8aa0;
}

.ant-link {
    color: #ff6a00;
    transition: all 0.3s;
}

.ant-link:hover {
    color: #ff5500;
    text-decoration: underline;
}

/* 保持与注册页面一致的按钮样式 */
.ant-btn-primary {
    background: #ff6a00;
    border: none;
    color: white;
    border-radius: 6px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ant-btn-primary:hover {
    background: #ff5500;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,106,0,0.3);
}

.hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity 0.3s;
}

.ant-btn-primary:hover .hover-effect {
    opacity: 1;
}

@media (max-width: 480px) {
    .success-card {
        padding: 24px;
    }

    .success-title {
        font-size: 24px;
    }
}
</style>
</body>
</html>